package com.itzhihao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itzhihao.entity.Order;
import com.itzhihao.entity.Product;
import com.itzhihao.entity.Store;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.List;

public interface IOrderService extends IService<Order> {
    TableDataInfo getList(PageDomain pageDomain,Order order);

    Order getDetail(Long id);

    TableDataInfo selectListByStoreId(PageDomain pageDomain, Store store);

    TableDataInfo selectListByProductId(PageDomain pageDomain, Product product);

    boolean deleteByIds(List<Long> idLongList);

    boolean saveOrder(Order order);

    boolean deleteById(Long id);

    boolean updateStatus(Order order, int ordinal);
}
